package com.bbva.gptf.back.dominio;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.roo.addon.dbre.RooDbManaged;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooDbManaged(automaticallyDelete = true)
@RooEntity(versionField = "", table = "TGPT014_BITA_ACTIV", schema = "DBSGPT", finders = {
		"findTgpt014BitaActivsByFhActividadBetween",
		"findTgpt014BitaActivsByFhActividadGreaterThanEquals" })
public class Tgpt014BitaActiv {

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "sq_bitacora_activ")
	@SequenceGenerator(name = "sq_bitacora_activ", sequenceName = "SQ_BITACORA_ACTIV")
	@Column(name = "NU_ACTIVIDAD")
	private BigDecimal nuActividad;

	@Column(name = "FH_ACTIVIDAD")
	@NotNull
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(style = "S-")
	private Date fhActividad;
}
